package cn.hy.dataSync.bean;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "data.sync.comm.http.client")
public class HttpAsyncConfig {
    /**
     * 从连接池获取连接的超时时间【毫秒】
     */
    private int connectionRequestTimeout = 6000;

    /**
     * 应答超时时间【毫秒】
     */
    private int socketTimeout = 30000;

    /**
     * 连接超时时间【毫秒】
     */
    private int connectTimeout = 10000;

    /**
     * 最大并发连接数
     */
    private int maxConnTotal = 1024;

    /**
     * 每个路由最大并发连接数
     */
    private int maxConnPerRoute = 1024;
}
